<?php
?>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>收货地址</title>
    <meta name="viewport" content="width=device-width,initial-scale=1.0,user-scalable=0" />
    <meta name="format-detection" content="telephone=no,email=no" />
    <meta name="mobileOptimized" content="width" />
    <meta name="handheldFriendly" content="true" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <link rel="stylesheet" href="/static/css/main.css" />
    <script src="/static/script/zepto.min.js"></script>
</head>
<body class="m-gds-adrs">
<div class="list">
<?php foreach($data as $item){?>
    <div class="u-adrs">
        <h5><span>收货地址</span><?= $item['detail']?></h5>
        <p>收货人: <em><?= $item['name']?></em><span><?= $item['mobile']?></span></p>
        <a class="u-edit" href="/web/address/update?id=<?= $item['id']?>">编辑</a>
    </div>

<?php }?>
</div>
<h4><a href="/web/address/create">添加新地址</a></h4>


<script>
    $(function(){

    });
</script>
</body>
</html>